<?php

// Composer: "fzaninotto/faker": "v1.3.0"
use Faker\Factory as Faker;

class ContentsTableSeeder extends Seeder {

	public function run()
	{
		$faker = Faker::create();

		foreach(range(1, 10) as $index)
		{
			Content::create([
                            'url' => $faker->imageUrl('300','250', 'cats'),
                            'year' => $faker->date('Y-m-d'),
                            'topic_id' => rand(1,100),
                            'order' => '0'
			]);
		}
	}

}